package ch5;

import java.util.Scanner;

public class ForDazhao {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = 0;
		System.out.println("请输入一个整数：");
		num = sc.nextInt();
		for (int i = 1; i <= num; i++) {
			if (num == i * i) {
				System.out.println(num + "是" + i + "的平方!");
				System.out.println("num=" + num);
				System.out.println("i=" + i);
				break;
			}
			if (i == num) {
				System.out.println(num + "不是任何数的平方");
			}
		}

		// int k = 2;
		// while (k++ < 100)
		// ;
		// k++;
		// System.out.println(k);// 101? 102?

		// for (; k <= 1000; k++)
		// ;
		//
		// System.out.println(k);

	}

}
